﻿<phone:PhoneApplicationPage
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
	xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:local="clr-namespace:ElegxosMiFisikwnProswpwn" 
	xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
	x:Class="ElegxosMiFisikwnProswpwn.MainPage"
	mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="696"
	SupportedOrientations="Portrait" Orientation="Portrait"
	shell:SystemTray.IsVisible="True">

	<phone:PhoneApplicationPage.Resources>
		<local:ActiveConverter x:Key="ActiveConverter"/>
		<local:DateTimeToStringConverter x:Key="DateTimeToStringConverter" />
	</phone:PhoneApplicationPage.Resources>
	<phone:PhoneApplicationPage.ApplicationBar>
		<shell:ApplicationBar> 
			<shell:ApplicationBar.MenuItems>
				<shell:ApplicationBarMenuItem Text="Σχετικά" Click="ApplicationBarMenuItem_Click"/>
			</shell:ApplicationBar.MenuItems>
		</shell:ApplicationBar>
	</phone:PhoneApplicationPage.ApplicationBar>
 
	<!--Sample code showing usage of ApplicationBar-->
	<!--<phone:PhoneApplicationPage.ApplicationBar>
		<shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
			<shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
			<shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
			<shell:ApplicationBar.MenuItems>
				<shell:ApplicationBarMenuItem Text="MenuItem 1"/>
				<shell:ApplicationBarMenuItem Text="MenuItem 2"/>
			</shell:ApplicationBar.MenuItems>
		</shell:ApplicationBar>
	</phone:PhoneApplicationPage.ApplicationBar>-->

	<phone:PhoneApplicationPage.FontFamily>
		<StaticResource ResourceKey="PhoneFontFamilyNormal"/>
	</phone:PhoneApplicationPage.FontFamily>
	<phone:PhoneApplicationPage.FontSize>
		<StaticResource ResourceKey="PhoneFontSizeNormal"/>
	</phone:PhoneApplicationPage.FontSize>
	<phone:PhoneApplicationPage.Foreground>
		<StaticResource ResourceKey="PhoneForegroundBrush"/>
	</phone:PhoneApplicationPage.Foreground>

	<toolkit:TransitionService.NavigationInTransition>

		<toolkit:NavigationInTransition>

			<toolkit:NavigationInTransition.Backward>

				<toolkit:TurnstileTransition Mode="BackwardIn"/>

			</toolkit:NavigationInTransition.Backward>

			<toolkit:NavigationInTransition.Forward>

				<toolkit:TurnstileTransition Mode="ForwardIn"/>

			</toolkit:NavigationInTransition.Forward>

		</toolkit:NavigationInTransition>

	</toolkit:TransitionService.NavigationInTransition>

	<toolkit:TransitionService.NavigationOutTransition>

		<toolkit:NavigationOutTransition>

			<toolkit:NavigationOutTransition.Backward>

				<toolkit:TurnstileTransition Mode="BackwardOut"/>

			</toolkit:NavigationOutTransition.Backward>

			<toolkit:NavigationOutTransition.Forward>

				<toolkit:TurnstileTransition Mode="ForwardOut"/>

			</toolkit:NavigationOutTransition.Forward>

		</toolkit:NavigationOutTransition>

	</toolkit:TransitionService.NavigationOutTransition>


	<!--LayoutRoot is the root grid where all page content is placed-->
	<Grid x:Name="LayoutRoot" Background="Transparent" d:DataContext="{d:DesignData /SampleData/RgWsBasStoixNRtUserSampleData.xaml}">
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="*"/>
		</Grid.RowDefinitions>

		<!--TitlePanel contains the name of the application and page title-->
		<StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
			<TextBlock x:Name="ApplicationTitle" Style="{StaticResource PhoneTextNormalStyle}" Margin="30,0,37,0" ><Run Text="Έλεγχος ΑΦΜ "/></TextBlock>
		</StackPanel>

		<!--ContentPanel - place additional content here-->
		<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
			<ScrollViewer Margin="1,132,0,0">
				<StackPanel Width="417" CacheMode="BitmapCache">
					<StackPanel Margin="8,0,25,0" Orientation="Horizontal" d:LayoutOverrides="Width">
						<TextBlock Width="200" Text="ΑΦΜ"/>
						<TextBlock Text="{Binding afm}" HorizontalAlignment="Left" VerticalAlignment="Top" TextWrapping="Wrap" Width="184"/>
					</StackPanel>
					<StackPanel Margin="8,0" Orientation="Horizontal" d:LayoutOverrides="Width">
						<TextBlock Width="200" Text="Ονομασία"/>
						<TextBlock Text="{Binding onomasia}" HorizontalAlignment="Left" VerticalAlignment="Top" TextWrapping="Wrap" Width="199"/>
					</StackPanel>
					<StackPanel Margin="8,0,7,0" Orientation="Horizontal" d:LayoutOverrides="Width">
						<TextBlock Text="Εμπορικός Τίτλος" Width="200"/>
				
				
						<TextBlock Text="{Binding commerTitle}" Margin="0" VerticalAlignment="Top" TextWrapping="Wrap" HorizontalAlignment="Left" Width="200"/>
					</StackPanel>
					<StackPanel Margin="8,0,7,0" Orientation="Horizontal" d:LayoutOverrides="Width">
						<TextBlock Width="200" Text="Ενεργός"/>
						<TextBlock Text="{Binding deactivationFlag, Converter={StaticResource ActiveConverter}}" HorizontalAlignment="Left" VerticalAlignment="Top" TextWrapping="Wrap" Width="200"/>
					</StackPanel>
					<StackPanel Margin="8,0" Orientation="Horizontal" d:LayoutOverrides="Width">
						<TextBlock Width="200" Text="Περιγραφή"/>
						<TextBlock Text="{Binding actLongDescr}" HorizontalAlignment="Left" VerticalAlignment="Top" TextWrapping="Wrap" Margin="0" Width="200"/>
					</StackPanel>
					<StackPanel Margin="8,0,0,0" Orientation="Horizontal">
						<TextBlock Width="200" Text="ΔΟΥ"/>
						<TextBlock Text="{Binding doy}" Margin="0" HorizontalAlignment="Left" VerticalAlignment="Top" TextWrapping="Wrap" Width="209"/>
					</StackPanel>
					<StackPanel Margin="8,0,0,0" Orientation="Horizontal">
						<TextBlock Width="200" Text="Περιγραφή ΔΟΥ"/>
						<TextBlock Text="{Binding doyDescr}" HorizontalAlignment="Left" VerticalAlignment="Top" TextWrapping="Wrap" Width="209"/>
					</StackPanel>
					<StackPanel Margin="8,0,7,0" Orientation="Horizontal">
						<TextBlock Width="200" Text="Τηλέφωνο"/>
						<TextBlock Text="{Binding firmPhone}" Margin="0" HorizontalAlignment="Left" TextWrapping="Wrap" Width="200"/>
					</StackPanel>
					<StackPanel Margin="8,0,0,0" Orientation="Horizontal" d:LayoutOverrides="Width">
						<TextBlock Width="200" Text="ΦΑΞ"/>
						<TextBlock Text="{Binding firmFax}" Margin="0" HorizontalAlignment="Left" TextWrapping="Wrap" Width="209"/>
					</StackPanel>
					<StackPanel Margin="8,0,7,0" Orientation="Horizontal" d:LayoutOverrides="Width">
						<TextBlock TextWrapping="Wrap" Text="Πόλη" d:LayoutOverrides="Height" Width="200"/>
						<TextBlock Text="{Binding parDescription}" HorizontalAlignment="Left" VerticalAlignment="Top" TextWrapping="Wrap" Width="201"/>
					</StackPanel>
					<StackPanel Margin="8,0,7,0" Orientation="Horizontal" d:LayoutOverrides="Width">
						<TextBlock Width="200" Text="Διεύθυνση"/>
						<TextBlock Text="{Binding postalAddress}" VerticalAlignment="Top" TextWrapping="Wrap" Width="201"/>
					</StackPanel>
					<StackPanel Margin="8,0,7,0" Orientation="Horizontal" d:LayoutOverrides="Width">
						<TextBlock TextWrapping="Wrap" Text="Αριθμός" d:LayoutOverrides="Height" Width="200"/>
						<TextBlock Text="{Binding postalAddressNo}" HorizontalAlignment="Left" VerticalAlignment="Top" TextWrapping="Wrap" Width="201"/>
					</StackPanel>
					<StackPanel Margin="8,0,0,0" Orientation="Horizontal" d:LayoutOverrides="Width">
						<TextBlock Width="200" Text="ΤΚ"/>
						<TextBlock Text="{Binding postalZipCode}" HorizontalAlignment="Left" VerticalAlignment="Top" TextWrapping="Wrap" Width="207"/>
					</StackPanel>
					<StackPanel Margin="8,0,0,0" Orientation="Horizontal" d:LayoutOverrides="Width">
						<TextBlock Width="200" Text="Ημ/νία έναρξης"/>
						<TextBlock Text="{Binding registDate, Converter={StaticResource DateTimeToStringConverter}}" HorizontalAlignment="Left" VerticalAlignment="Top" TextWrapping="Wrap" Width="207"/>
					</StackPanel>
					<StackPanel Margin="8,0,0,0" Orientation="Horizontal" d:LayoutOverrides="Width">
						<TextBlock Width="200" Text="Ημ/νία διακοπής"/>
						<TextBlock Text="{Binding stopDate, Converter={StaticResource DateTimeToStringConverter}}" HorizontalAlignment="Left" VerticalAlignment="Top" TextWrapping="Wrap" Width="207"/>
					</StackPanel>


                    <!--<StackPanel Margin="8,0,7,0" Orientation="Horizontal" d:LayoutOverrides="Width">
                        <TextBlock Text="Εμπορικός Τίτλος" Width="200"/>


                        <TextBlock Text="{Binding commerTitle}" Margin="0" VerticalAlignment="Top" TextWrapping="Wrap" HorizontalAlignment="Left" Width="200"/>
                    </StackPanel>
                    <StackPanel Margin="8,0,7,0" Orientation="Horizontal" d:LayoutOverrides="Width">
                        <TextBlock Width="200" Text="Ενεργός"/>
                        <TextBlock Text="{Binding deactivationFlag, Converter={StaticResource ActiveConverter}}" HorizontalAlignment="Left" VerticalAlignment="Top" TextWrapping="Wrap" Width="200"/>
                    </StackPanel>
                    <StackPanel Margin="8,0" Orientation="Horizontal" d:LayoutOverrides="Width">
                        <TextBlock Width="200" Text="Περιγραφή"/>
                        <TextBlock Text="{Binding actLongDescr}" HorizontalAlignment="Left" VerticalAlignment="Top" TextWrapping="Wrap" Margin="0" Width="200"/>
                    </StackPanel>
                    <StackPanel Margin="8,0,0,0" Orientation="Horizontal">
                        <TextBlock Width="200" Text="ΔΟΥ"/>
                        <TextBlock Text="{Binding doy}" Margin="0" HorizontalAlignment="Left" VerticalAlignment="Top" TextWrapping="Wrap" Width="209"/>
                    </StackPanel>
                    <StackPanel Margin="8,0,0,0" Orientation="Horizontal">
                        <TextBlock Width="200" Text="Περιγραφή ΔΟΥ"/>
                        <TextBlock Text="{Binding doyDescr}" HorizontalAlignment="Left" VerticalAlignment="Top" TextWrapping="Wrap" Width="209"/>
                    </StackPanel>
                    <StackPanel Margin="8,0,7,0" Orientation="Horizontal">
                        <TextBlock Width="200" Text="Τηλέφωνο"/>
                        <TextBlock Text="{Binding firmPhone}" Margin="0" HorizontalAlignment="Left" TextWrapping="Wrap" Width="200"/>
                    </StackPanel>
                    <StackPanel Margin="8,0,0,0" Orientation="Horizontal" d:LayoutOverrides="Width">
                        <TextBlock Width="200" Text="ΦΑΞ"/>
                        <TextBlock Text="{Binding firmFax}" Margin="0" HorizontalAlignment="Left" TextWrapping="Wrap" Width="209"/>
                    </StackPanel>
                    <StackPanel Margin="8,0,7,0" Orientation="Horizontal" d:LayoutOverrides="Width">
                        <TextBlock TextWrapping="Wrap" Text="Πόλη" d:LayoutOverrides="Height" Width="200"/>
                        <TextBlock Text="{Binding parDescription}" HorizontalAlignment="Left" VerticalAlignment="Top" TextWrapping="Wrap" Width="201"/>
                    </StackPanel>
                    <StackPanel Margin="8,0,7,0" Orientation="Horizontal" d:LayoutOverrides="Width">
                        <TextBlock Width="200" Text="Διεύθυνση"/>
                        <TextBlock Text="{Binding postalAddress}" VerticalAlignment="Top" TextWrapping="Wrap" Width="201"/>
                    </StackPanel>
                    <StackPanel Margin="8,0,7,0" Orientation="Horizontal" d:LayoutOverrides="Width">
                        <TextBlock TextWrapping="Wrap" Text="Αριθμός" d:LayoutOverrides="Height" Width="200"/>
                        <TextBlock Text="{Binding postalAddressNo}" HorizontalAlignment="Left" VerticalAlignment="Top" TextWrapping="Wrap" Width="201"/>
                    </StackPanel>
                    <StackPanel Margin="8,0,0,0" Orientation="Horizontal" d:LayoutOverrides="Width">
                        <TextBlock Width="200" Text="ΤΚ"/>
                        <TextBlock Text="{Binding postalZipCode}" HorizontalAlignment="Left" VerticalAlignment="Top" TextWrapping="Wrap" Width="207"/>
                    </StackPanel>
                    <StackPanel Margin="8,0,0,0" Orientation="Horizontal" d:LayoutOverrides="Width">
                        <TextBlock Width="200" Text="Ημ/νία έναρξης"/>
                        <TextBlock Text="{Binding registDate, Converter={StaticResource DateTimeToStringConverter}}" HorizontalAlignment="Left" VerticalAlignment="Top" TextWrapping="Wrap" Width="207"/>
                    </StackPanel>
                    <StackPanel Margin="8,0,0,0" Orientation="Horizontal" d:LayoutOverrides="Width">
                        <TextBlock Width="200" Text="Ημ/νία διακοπής"/>
                        <TextBlock Text="{Binding stopDate, Converter={StaticResource DateTimeToStringConverter}}" HorizontalAlignment="Left" VerticalAlignment="Top" TextWrapping="Wrap" Width="207"/>
                    </StackPanel>-->
                </StackPanel>
			</ScrollViewer>
			<TextBox Height="72" HorizontalAlignment="Left" Margin="89,-3,0,0" x:Name="textBox1" VerticalAlignment="Top" Width="308" InputScope="Number" />
			<TextBlock Height="30" HorizontalAlignment="Left" Margin="43,20,0,0" x:Name="textBlock1" Text="ΑΦΜ" VerticalAlignment="Top" />
			<Button toolkit:TiltEffect.IsTiltEnabled="True"  Content="Έλεγχος" Height="78" Margin="105,59,126,0" VerticalAlignment="Top" Click="Button_Click" />
		</Grid>
	</Grid>

</phone:PhoneApplicationPage>